﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RayDen.Library.Entity.Renderer
{
    public class KeyFrameParameter
    {
        public string Name { get; set; }
        public int FramesCount { get; set; }
        public virtual Object MinValue { get; set; }
        public virtual Object MaxValue { get; set; }
        public virtual Object Delta { get; set; }
    }

    public class KeyFrameParameter<TParam> : KeyFrameParameter
    {
        protected TParam min, max, delta;

        public KeyFrameParameter(string name)
        {
            this.Name = name;
        }

        public override Object MinValue {
            get { return this.min; }
            set { this.min = (TParam) value; }

        }

        public override Object MaxValue
        {
            get { return this.max; }
            set { this.max = (TParam)value; }

        }

        public override Object Delta
        {
            get { return this.delta; }
            set { this.delta = (TParam)value; }

        }
    }

}
